package com.ddatsh.httpinvoker.controller;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ddatsh.httpinvoker.service.DBService;

@Controller
public class DBController {

	@Autowired
	DBService dbService;
	
	@RequestMapping("/save")
	@ResponseBody
	public String save(HttpSession session){
		try {
			dbService.save();
		} catch (Exception e) {
		 
		}
		return "ok";
	}
}
